home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / luna88k.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.8 KB  |  100 lines

  1. /* m- file for LUNA 88000 running Mach.
  2.  
  3. originaly wrote by
  4.     Jun. 26th '90
  5.     Akitoshi MORISHIMA
  6.     ohm@astem.or.jp
  7.  
  8. modified for mule-2.0 by
  9.     Sep. 10th '94
  10.         MUKAIGAWA Shin'ichi
  11.     shin@ari.ncl.omron.co.jp
  12.  
  13.    Copyright (C) 1990 Free Software Foundation, Inc.
  14.  
  15. This file is part of GNU Emacs.
  16.  
  17. GNU Emacs is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY.  No author or distributor
  19. accepts responsibility to anyone for the consequences of using it
  20. or for whether it serves any particular purpose or works at all,
  21. unless he says so in writing.  Refer to the GNU Emacs General Public
  22. License for full details.
  23.  
  24. Everyone is granted permission to copy, modify and redistribute
  25. GNU Emacs, but only under the conditions described in the
  26. GNU Emacs General Public License.   A copy of this license is
  27. supposed to have been given to you along with GNU Emacs so you
  28. can know your rights and responsibilities.  It should be in a
  29. file named COPYING.  Among other things, the copyright notice
  30. and this notice must be preserved on all copies.  */
  31.  
  32. /* Synched up with: Mule 2.0.  Not in FSF. */
  33.  
  34. /* Define how to take a char and sign-extend into an int.
  35.    On machines where char is signed, this is a no-op.  */
  36.  
  37. #define SIGN_EXTEND_CHAR(c) (c)
  38.  
  39. /* Use type int rather than a union, to represent Lisp_Object */
  40.  
  41. #define NO_UNION_TYPE
  42.  
  43. /* XINT must explicitly sign-extend */
  44.  
  45. #define EXPLICIT_SIGN_EXTEND
  46.  
  47. /* Data type of load average, as read out of kmem.  */
  48.  
  49. #define LOAD_AVE_TYPE long
  50.  
  51. /* Convert that into an integer that is 100 for a load average of 1.0  */
  52.  
  53. #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
  54.  
  55. /* On Mach, LSCALE is defined instead of FSCALE, in h/kernel.h, as 1000. */
  56.  
  57. #define FSCALE 1000
  58.  
  59. /* Mask for address bits within a memory segment */
  60. /* In other words, data segment starts from the address that is end of
  61.    text segment rounded up to next (SEGMENT_MASK + 1) boundary. */
  62.  
  63. #define SEGSIZ       0x20000
  64. #define SEGMENT_MASK (SEGSIZ - 1)
  65.  
  66. /* macros to make unexec work right */
  67.  
  68. #define A_TEXT_OFFSET(HDR) sizeof(HDR)
  69. #define A_TEXT_SEEK(HDR) sizeof(HDR)
  70.  
  71. /* Define HAVE_ALLOCA to say that the system provides a properly
  72.    working alloca function and it should be used.
  73.    At least, gcc for 88000 supports inline alloca. */
  74.  
  75. #define HAVE_ALLOCA
  76.  
  77. /* Memory management mechanism is different on Mach, so emacs-supplied
  78.    malloc.c does not work. */
  79.  
  80. #define SYSTEM_MALLOC
  81.  
  82. /* We want errno in crt0.c */
  83.  
  84. #define NEED_ERRNO
  85.  
  86. /* Mach has 'init_process()' in libc.a, conflicting with emacs'
  87.    'init_process()', causing make to stop. So redefining that. */
  88.  
  89. #define init_process init_process_emacs
  90.  
  91. #define C_COMPILER gcc
  92.  
  93. #define LOAD_AVE_MACH
  94.  
  95. #define LIBS_MACHINE -lmach
  96.  
  97. #define LIB_X11_LIB -L/usr/lib/X11 -lX11 -lXwchar
  98.  
  99. #define CRT0_COMPILE cc -c -O -Demacs $(ALL_CFLAGS)
  100.